import request from '@/utils/request'

// 查询授权标识列表
export function listCredit_flag(query) {
    return request({
        url: '/bizsys/flag/list',
        method: 'get',
        params: query
    })
}

// 查询授权标识详细
export function getCredit_flag(id) {
    return request({
        url: '/bizsys/flag/' + id,
        method: 'get'
    })
}

// 新增授权标识
export function addCredit_flag(data) {
    return request({
        url: '/bizsys/flag',
        method: 'post',
        data: data
    })
}

// 修改授权标识
export function updateCredit_flag(data) {
    return request({
        url: '/bizsys/flag',
        method: 'put',
        data: data
    })
}

// 删除授权标识
export function delCredit_flag(id) {
    return request({
        url: '/bizsys/flag/' + id,
        method: 'delete'
    })
}

// 导出授权标识
export function exportCredit_flag(query) {
    return request({
        url: '/bizsys/flag/export',
        method: 'get',
        params: query
    })
}
